package structure.bridge;

/**
 * @author dali
 * @date 2021-07-15 10:54
 * @Description 测试
 */

public class Client {

    public static void main(String[] args) {
        PayType p = new FacePay(new WXPay());
        p.pay();
        PayType p1 = new FacePay(new ZFBPay());
        p1.pay();
        PayType p2 = new FingerPay(new WXPay());
        p2.pay();
        PayType p3 = new FingerPay(new ZFBPay());
        p3.pay();
    }
}
